package com.firmail.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFirmailUtils {

	private static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
//	private static final SimpleDateFormat format1 = new SimpleDateFormat("yyyy-MM-dd HH");

	public static String formatTime(long date) {
		return format.format(new Date(date));
	}
	
//	public static void main(String[] args) throws Exception {
//		//1502380800000
//		Date date = format1.parse("2017-08-11 14");
//		System.out.println(date.getTime());
//		System.out.println(new Date(1502435002802L));
//		
//	}
//	
	

}
